// src/api/modules/menu.ts
import { http } from "@/api/http/request";
import menuList from "@/mock/data/json/menu.json";
import { API_URLS } from "../constants/api-url";

export const fetchMenuListApi = () => {
  // if (import.meta.env.MODE === "development") {
    return new Promise((resolve) => {
      setTimeout(() => {
        resolve({ data: menuList });
      }, 500);
    });
  // }
  return http.get(API_URLS.MENU_LIST, {});
};
